# Copyright (C) 2013-2016 Freescale Semiconductor
# Copyright 2018 (C) O.S. Systems Software LTDA.
# Copyright 2017-2022 NXP

require recipes-bsp/u-boot/u-boot.inc
require recipes-bsp/u-boot/u-boot-imx-common_${PV}.inc

###############################################################
# BEGIN: Changes to u-boot-imx-common_${PV}.inc
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = " "

SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}"
UBOOT_SRC = "git://gitee.com/githubmap/uboot-imx.git;protocol=https"
SRCBRANCH = "master"
SRCREV = "${AUTOREV}"
LOCALVERSION = "-${SRCBRANCH}"

DEPENDS += "gnutls-native xxd-native"

# END: Changes to u-boot-imx-common_${PV}.inc
###############################################################

PROVIDES += "u-boot"

inherit uuu_bootloader_tag

UUU_BOOTLOADER             = "${UBOOT_BINARY}"
UUU_BOOTLOADER_TAGGED      = "u-boot-tagged.${UBOOT_SUFFIX}"

PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(mx6-generic-bsp|mx7-generic-bsp|mx8-generic-bsp|mx9-generic-bsp)"
